Don't try to focus the default_widget if there is none. (#169881, Thomas
authorMatthias Clasen <mclasen@redhat.com>
Fri, 11 Mar 2005 04:28:13 +0000 (04:28 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 11 Mar 2005 04:28:13 +0000 (04:28 +0000)
2005-03-10  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtkdialog.c (gtk_dialog_map): Don't
try to focus the default_widget if there is
none.  (#169881, Thomas Leonard)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtkdialog.c

index 49ebcf448cb54c25ff27f11a4733b80b3eb96e18..b4576a1d67eea2a7dd55b31f5660cd60978ff377 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-03-10  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkdialog.c (gtk_dialog_map): Don't
+       try to focus the default_widget if there is 
+       none.  (#169881, Thomas Leonard)
+
 Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>
 
        * configure.in: Remove inadvertent gail references, require
index 49ebcf448cb54c25ff27f11a4733b80b3eb96e18..b4576a1d67eea2a7dd55b31f5660cd60978ff377 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-10  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkdialog.c (gtk_dialog_map): Don't
+       try to focus the default_widget if there is 
+       none.  (#169881, Thomas Leonard)
+
 Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>
 
        * configure.in: Remove inadvertent gail references, require
index 49ebcf448cb54c25ff27f11a4733b80b3eb96e18..b4576a1d67eea2a7dd55b31f5660cd60978ff377 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-10  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkdialog.c (gtk_dialog_map): Don't
+       try to focus the default_widget if there is 
+       none.  (#169881, Thomas Leonard)
+
 Wed Mar  9 19:20:44 2005  Manish Singh  <yosh@gimp.org>
 
        * configure.in: Remove inadvertent gail references, require
index da1ea326bac515b5380f00d0b2e2ca8653fa41c1..a93ed7b8c7edcad0fa1813c818426d81d4e4b8fe 100644 (file)
@@ -359,15 +359,15 @@ gtk_dialog_map (GtkWidget *widget)
       while (GTK_IS_LABEL (window->focus_widget));
 
       tmp_list = children = gtk_container_get_children (GTK_CONTAINER (dialog->action_area));
-
+      
       while (tmp_list)
        {
          GtkWidget *child = tmp_list->data;
-
-         if (window->focus_widget == NULL ||
-             (child == window->focus_widget && 
-              child != window->default_widget && 
-              window->default_widget))
+         
+         if ((window->focus_widget == NULL || 
+              child == window->focus_widget) && 
+             child != window->default_widget &&
+             window->default_widget)
            {
              gtk_widget_grab_focus (window->default_widget);
              break;
@@ -375,7 +375,7 @@ gtk_dialog_map (GtkWidget *widget)
          
          tmp_list = tmp_list->next;
        }
-
+      
       g_list_free (children);
     }
 }